/* Find the maximum of three numbers */
#include <cstdio>
#include "maximum.h"

double maximum(double x, double y, double z)
{
   double max = x;     /* assume x is largest */

   if ( y > max ) { /* if y is larger than max, assign y to max */
      max = y;
   } /* end if */

   if ( z > max ) { /* if z is larger than max, assign z to max */
      max = z;
   } /* end if */

   return max;      /* max is largest value */
} 

double maximum( double x, double y)
{
   double max = x;     /* assume x is largest */

   if ( y > max ) { /* if y is larger than max, assign y to max */
      max = y;
   } 

   return max;      /* max is largest value */
} 
